//
// Created by wze-zero on 2024/7/19 019.
//
#include <iostream>

using namespace std;

class Time {

public:
    int hours;      // 小时
    int minutes;    // 分钟

    Time() {
        hours = 0;
        minutes = 0;
    }

    Time(int h, int m) {
        this->hours = h;
        this->minutes = m;
    }

    void show() const {
        cout << hours << " " << minutes << endl;
    }

    bool operator<(Time &time) const{
        return this->hours== time.hours? this->minutes< time.minutes: this->hours<time.hours;
    }


};

int main() {
    int h, m;
    cin >> h;
    cin >> m;
    Time t1(h, m);
    Time t2(6, 6);
    if (t1 < t2) {
        cout << "yes" << endl;
    } else {
        cout << "no" << endl;
    }
    return 0;
}